<?php

$base_path = realpath('core');

$base_path = str_replace('core', '', $base_path);

$base_path = str_replace('\\', '/', $base_path);

define('BASEPATH', $base_path);

define('CORE', BASEPATH . 'core');
define('MODEL', BASEPATH . 'model');
define('DOMAIN', MODEL . '/domain');
define('MODEL_PERSITENCE', MODEL . '/persistence');
define('MODEL_SERVICE', MODEL . '/service');
define('MODEL_DOMAIN', MODEL . '/domain');
define('CONTROLLER', BASEPATH . 'controller');
define('VIEW', BASEPATH . 'view');
define('UI_CLASSES', VIEW . '/uiClasses');
define('CONFIG', BASEPATH . 'config');
define('EXT', '.php');

require_once CORE . '/autoload' . EXT;
require_once CORE . '/core' . EXT;

Core::getInstance()->init();